﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Check_Printing_Solution
{
    public partial class ManageUsers : Form
    {
        PrintManager manager = new PrintManager();
        Form formsender = null;

        public ManageUsers()
        {
            InitializeComponent();
        }

        public ManageUsers( Form sender )
        {
            InitializeComponent();
            formsender = sender;
        }

        private void ManageUsers_Load( object sender, EventArgs e )
        {
            dgUsers.DataSource = manager.GetAllUsers();
        }

        private void ManageUsers_FormClosed( object sender, FormClosedEventArgs e )
        {
            formsender.Show();
            //this.Close();
        }
    }
}
